import http from '@/service'

export function getSongDetail(ids: number) {
  return http.get({
    url: '/song/detail',
    params: {
      ids
    }
  })
}

export function getPlayList(id: number, s: number = 8) {
  return http.get({
    url: '/playlist/detail',
    params: {
      id,
      s
    }
  })
}
export function getSongCategoryList(cat = '全部', offset = 0, limit = 35) {
  return http.get({
    url: '/top/playlist',
    params: {
      cat,
      limit,
      offset
    }
  })
}
export function getSongCategory() {
  return http.get({
    url: '/playlist/catlist'
  })
}

// 包含这首歌的歌单
export function getSimilarAlbum(id: number) {
  console.log('id', id)
  return http.get({
    url: '/simi/playlist',
    params: {
      id
    }
  })
}
